package com.taxi.remote;

import com.taxi.dto.DriverUser;
import com.taxi.response.TerminalResponse;
import com.taxi.response.TrackResponse;
import com.taxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: aniu
 * @Date: 2023/9/30
 * @ClassName: ServiceClient
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {
    @PostMapping("/terminal/add")
    public Result<TerminalResponse> addTerminal(@RequestParam("name") String name,@RequestParam(value = "desc",required = false)String desc);

    @PostMapping("/track/add")
    public Result<TrackResponse> addTrack(@RequestParam String tid);
}
